﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ContentUpdate" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="ContentUpdateActions">
    <xs:complexType>
      <xs:choice minOccurs="1" maxOccurs="unbounded">
        <xs:element maxOccurs="unbounded" name="Action">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="ContentUpdate">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="PropertyUpdate">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute name="Name" type="xs:string" use="required" />
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="UpdateType" type="UpdateTypes" />
                  <xs:attribute name="WebPartNamespace" type="xs:string" use="optional" default="" />
                  <xs:attribute name="WebPartZone" type="xs:string" use="required" />
                  <xs:attribute name="WebPartTitle" type="xs:string" use="optional" default="" />
                  <xs:attribute name="WebPartZoneIndex" type="xs:int" use="optional" default="1" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Url" type="xs:string" use="required" />
            <xs:attribute name="Site" type="xs:string" use="required" />
            <xs:attribute name="Page" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="UpdateTypes">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Add" />
      <xs:enumeration value="Update" />
      <xs:enumeration value="Remove" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>